<?php
namespace ImiApp\Module\Member\Model\Base;

use Imi\Model\Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 班级的课程表 基类
 * @Entity
 * @Table(name="sc_jigou_team_table", id={"id"})
 * @DDL("CREATE TABLE `sc_jigou_team_table` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `team_id` int(10) DEFAULT NULL COMMENT '班级id',
  `s_time` int(10) DEFAULT NULL COMMENT '上课时间',
  `e_time` int(10) DEFAULT NULL COMMENT '下课时间',
  `teacher_id` int(10) DEFAULT NULL COMMENT '老师id',
  `sign_nums` int(10) DEFAULT NULL COMMENT '签到人数',
  `take_teacher_id` int(10) DEFAULT NULL COMMENT '代课老师id',
  `status` enum('1','2','3','4') DEFAULT '1' COMMENT '状态:1=待上课,2=上课中,3=已上课,4=已过期',
  `admin_id` int(10) DEFAULT NULL COMMENT '机构id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='班级的课程表'")
 * @property int $id 
 * @property int $teamId 班级id
 * @property int $sTime 上课时间
 * @property int $eTime 下课时间
 * @property int $teacherId 老师id
 * @property int $signNums 签到人数
 * @property int $takeTeacherId 代课老师id
 * @property string $status 状态:1=待上课,2=上课中,3=已上课,4=已过期
 * @property int $adminId 机构id
 */
abstract class ScJigouTeamTableBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * 班级id
     * team_id
     * @Column(name="team_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $teamId;

    /**
     * 获取 teamId - 班级id
     *
     * @return int
     */ 
    public function getTeamId()
    {
        return $this->teamId;
    }

    /**
     * 赋值 teamId - 班级id
     * @param int $teamId team_id
     * @return static
     */ 
    public function setTeamId($teamId)
    {
        $this->teamId = $teamId;
        return $this;
    }

    /**
     * 上课时间
     * s_time
     * @Column(name="s_time", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $sTime;

    /**
     * 获取 sTime - 上课时间
     *
     * @return int
     */ 
    public function getSTime()
    {
        return $this->sTime;
    }

    /**
     * 赋值 sTime - 上课时间
     * @param int $sTime s_time
     * @return static
     */ 
    public function setSTime($sTime)
    {
        $this->sTime = $sTime;
        return $this;
    }

    /**
     * 下课时间
     * e_time
     * @Column(name="e_time", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $eTime;

    /**
     * 获取 eTime - 下课时间
     *
     * @return int
     */ 
    public function getETime()
    {
        return $this->eTime;
    }

    /**
     * 赋值 eTime - 下课时间
     * @param int $eTime e_time
     * @return static
     */ 
    public function setETime($eTime)
    {
        $this->eTime = $eTime;
        return $this;
    }

    /**
     * 老师id
     * teacher_id
     * @Column(name="teacher_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $teacherId;

    /**
     * 获取 teacherId - 老师id
     *
     * @return int
     */ 
    public function getTeacherId()
    {
        return $this->teacherId;
    }

    /**
     * 赋值 teacherId - 老师id
     * @param int $teacherId teacher_id
     * @return static
     */ 
    public function setTeacherId($teacherId)
    {
        $this->teacherId = $teacherId;
        return $this;
    }

    /**
     * 签到人数
     * sign_nums
     * @Column(name="sign_nums", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $signNums;

    /**
     * 获取 signNums - 签到人数
     *
     * @return int
     */ 
    public function getSignNums()
    {
        return $this->signNums;
    }

    /**
     * 赋值 signNums - 签到人数
     * @param int $signNums sign_nums
     * @return static
     */ 
    public function setSignNums($signNums)
    {
        $this->signNums = $signNums;
        return $this;
    }

    /**
     * 代课老师id
     * take_teacher_id
     * @Column(name="take_teacher_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $takeTeacherId;

    /**
     * 获取 takeTeacherId - 代课老师id
     *
     * @return int
     */ 
    public function getTakeTeacherId()
    {
        return $this->takeTeacherId;
    }

    /**
     * 赋值 takeTeacherId - 代课老师id
     * @param int $takeTeacherId take_teacher_id
     * @return static
     */ 
    public function setTakeTeacherId($takeTeacherId)
    {
        $this->takeTeacherId = $takeTeacherId;
        return $this;
    }

    /**
     * 状态:1=待上课,2=上课中,3=已上课,4=已过期
     * status
     * @Column(name="status", type="enum", length=0, accuracy=0, nullable=true, default="1", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $status;

    /**
     * 获取 status - 状态:1=待上课,2=上课中,3=已上课,4=已过期
     *
     * @return string
     */ 
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * 赋值 status - 状态:1=待上课,2=上课中,3=已上课,4=已过期
     * @param string $status status
     * @return static
     */ 
    public function setStatus($status)
    {
        $this->status = $status;
        return $this;
    }

    /**
     * 机构id
     * admin_id
     * @Column(name="admin_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $adminId;

    /**
     * 获取 adminId - 机构id
     *
     * @return int
     */ 
    public function getAdminId()
    {
        return $this->adminId;
    }

    /**
     * 赋值 adminId - 机构id
     * @param int $adminId admin_id
     * @return static
     */ 
    public function setAdminId($adminId)
    {
        $this->adminId = $adminId;
        return $this;
    }

}
